//
//  OrderListViewController.m
//  beautyAccompany
//
//  Created by xiaocankeji on 15/11/9.
//  Copyright © 2015年 xiaocankeji. All rights reserved.
//

#import "OrderListViewController.h"

@interface OrderListViewController ()

@end

@implementation OrderListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = APPCOLORBACKGROUNDCOLOR(1);
//    self.showRefreshFooter = YES;//设置为yes的时候会出现点击加载更多
    self.showRefreshHeader = YES;
    self.showTableBlankView = YES;
    //请求结束后根据结果决定是否展示
   //  [self viewControllerPrompt:CGRectMake(0, 0 , DeviceWidth, DeviceHeight) Text:@"还没有订单信息" Image:[UIImage imageNamed:@"lianren_nul"]];
    //如果 self.dataArray.count == 0 && self.dataDictionary.count == 0 则设置self.promptView.hidden = NO;
    // Do any additional setup after loading the view.
}
/**
 *  下拉刷新事件
 */
- (void)tableViewDidTriggerHeaderRefresh
{
    self.page = 0;
    [self tableViewDidFinishTriggerHeader:YES reload:YES];
}

/**
 *  上拉加载事件
 */
- (void)tableViewDidTriggerFooterRefresh
{
     [self tableViewDidFinishTriggerHeader:NO reload:YES];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    
    if(self.promptView != nil){
        if (self.dataArray.count == 0) {
            self.promptView.hidden = NO;
        }else{
            self.promptView.hidden = YES;
        }
    }
    return self.dataArray.count;
}
//- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    
//}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
